package de.unibi.mmi.homeauto.team1.constants;

public class CORRIDOR {
	public static final int SMOKE_ID = 80;
	public static final int DOOR_ID = 81;
	public static final int CURRENT_ROOM_TEMP_ID = 82;
	public static final int HEATING_ID = 83;
	public static final int SET_ROOM_TEMP_ID = 84;
	public static final int LAMP_ID = 85;

	public static final int[] IDS = { CORRIDOR.SMOKE_ID, CORRIDOR.DOOR_ID,
			CORRIDOR.CURRENT_ROOM_TEMP_ID, CORRIDOR.HEATING_ID, CORRIDOR.SET_ROOM_TEMP_ID,
			CORRIDOR.LAMP_ID };

	private static final float[] values = new float[6];

	public static final void setValue(int id, float value) {
		values[id - 80] = value;
	}

	public static final float getValue(int id) {
		return id >= 80 && id <= 85 ? values[id - 80] : -1;
	}
}
